package com.xx.springsecuritydemo.main.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoXuan
 * @since 2024-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("role_authorities")
public class RoleAuthorities implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色权限中间表主键
     */
      @TableId(value = "role_authorities_id", type = IdType.AUTO)
    private Integer roleAuthoritiesId;

    /**
     * 角色id
     */
    @TableField("role_id")
    private Integer roleId;

    /**
     * 权限id
     */
    @TableField("authorities_id")
    private Integer authoritiesId;


}
